package com.springcloud.controller;

import com.sifa.springcloud.entities.CommentResult;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class PaymentController {

    @Value("${server.port}")
    private String  serverPort;

    @GetMapping(value = "paymentSQL/{id}")
    public CommentResult paymentSql(@PathVariable("id")Integer id){
        return new CommentResult(200,"访问到了"+serverPort+id,null);
    }
}
